<template>
  <div @touchmove.prevent class="cover">
    <div class="panel">
      <div class="text">{{ text }}</div>
      <div class="score">{{ score| pointFix }}积分</div>
      <div class="sub-text">明日再来还有奖励～</div>
      <div @click="$emit('finish')" class="btn">立即领取</div>
      <div @click="$emit('close')" class="close-btn">
        <img src="@/assets/kll/guanbi.png" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props: ["text", "score"],
  data() {
    return {};
  },

  computed: {},

  watch: {},

  methods: {},

  created() {},

  components: {}
};
</script>
<style lang="less" scoped>
.cover {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99;
  top: 0;
  left: 0;
  .panel {
    position: relative;
    width: 12rem;
    height: 15rem;
    background-image: url("../../../assets/kll/beijing.png");
    background-size: 100% 100%;
    margin: calc(50vh - 8rem) auto 0;
    padding-top: 8rem;
    text-align: center;
    .text {
      font-size: 0.6rem;
      color: #ff6228;
    }
    .score {
      color: #f85a1b;
      font-weight: bold;
      font-size: 1.2rem;
      line-height: 2.5rem;
    }
    .sub-text {
      color: #999;
      font-size: 0.52rem;
    }
    .btn {
      width: 7rem;
      height: 1.4rem;
      background: linear-gradient(
        90deg,
        rgba(253, 127, 48, 1),
        rgba(252, 153, 0, 1)
      );
      box-shadow: 0 0.1rem 0.1rem rgba(252, 195, 137, 0.5);
      border-radius: 0.7rem;
      line-height: 1.4rem;
      text-align: center;
      color: #fff3cc;
      font-size: 0.66rem;
      margin: 0.4rem auto 0;
    }
    .close-btn {
      position: absolute;
      width: 1rem;
      height: 1rem;
      right: -0.5rem;
      top: 0;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
